package yuxin;

import java.util.Scanner;

public class T1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int T = sc.nextInt();
        while (T > 0) {
            T--;
            int h = sc.nextInt();
            int r = sc.nextInt();
            int x0 = sc.nextInt();
            int v1 = sc.nextInt();
            int v2 = sc.nextInt();

            double t = Math.sqrt(h*h + x0*x0) / v2;
            int leftIndex = x0 - r;
            int rightIndex = x0 + r;
            double indexNow = t * v1;

            if (indexNow >= leftIndex && indexNow <= rightIndex) {
                System.out.println("Yes");
            } else {
                System.out.println("No");
            }
        }
    }
}
